<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="cms" uri="http://cms.gxsoft.com/tags-cms"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用人单位信息管理</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
</head>


<body>
<table width="100%" border="1">
<c:if test="${!empty list}">
 <tr>
    <td class="nohover" colspan="10">
    <input class="buttondownload" type="button" value="下载" onclick="window.location.href='<%=request.getContextPath()%>/ViewOrgan.do?method=xls'">
    <input class="buttonbingtu" type="button" value="图例" onclick="window.location.href='<%=request.getContextPath()%>/ViewOrgan.do?method=pic'">
    </td>
 </tr>
 <tr>
    <td class="nohover" colspan="10" align="center">
    <b>劳动监察组织统计表</b>
    </td>
 </tr>
  <tr>
    <td width="200">&nbsp;</td>
    <td width="80">应建机构（个）</td>
    <td width="80">专设机构</td>
    <td width="80">合设机构（个）</td>
    <td width="80">专职监察员（人）</td>
    <td width="80">兼职监察员（人）</td>
    <td width="80">培训班（期）</td>
    <td width="80">培训监察员（人次）</td>
    <td width="80">监察协管员</td>
  </tr>
  <tr>
    <td>甲栏</td>
    <td>1</td>
    <td>2</td>
    <td>3</td>
    <td>4</td>
	<td>5</td>
	<td>6</td>
	<td>7</td>
	<td>8</td>
  </tr>
  <c:forEach items="${list}" var="prod" varStatus="lineInfo">
  <c:set var="supOrganYOrgan" scope="page" value="${supOrganYOrgan + prod.id.supOrganYOrgan}"/>
  <c:set var="supOrganZOrgan" scope="page" value="${supOrganZOrgan + prod.id.supOrganZOrgan}"/>
  <c:set var="supOrganHOrgan" scope="page" value="${supOrganHOrgan + prod.id.supOrganHOrgan}"/>
  <c:set var="supOrganZPerson" scope="page" value="${supOrganZPerson + prod.id.supOrganZPerson}"/>
  <c:set var="supOrganJPerson" scope="page" value="${supOrganJPerson + prod.id.supOrganJPerson}"/>
  <c:set var="supOrganXPerson" scope="page" value="${supOrganXPerson + prod.id.supOrganXPerson}"/>
    </c:forEach>
  <tr>
    <td>总计</td>
    <td>${supOrganYOrgan}</td>
    <td>${supOrganZOrgan}</td>
    <td>${supOrganHOrgan}</td>
    <td>${supOrganZPerson}</td>
    <td>${supOrganJPerson}</td>
	<td></td>
	<td></td>
	<td>${supOrganXPerson}</td>
  </tr>

  <c:forEach items="${list}" var="prod" varStatus="lineInfo">
  <tr <c:if test="${lineInfo.count % 2 == 0}">class="blue"</c:if>>
    <td>${prod.id.levelName}</td>
    <td>${prod.id.supOrganYOrgan}</td>
    <td>${prod.id.supOrganZOrgan}</td>
    <td>${prod.id.supOrganHOrgan}</td>
    <td>${prod.id.supOrganZPerson}</td>
    <td>${prod.id.supOrganJPerson}</td>
	<td></td>
	<td></td>
	<td>${prod.id.supOrganXPerson}</td>
  </tr>
  </c:forEach>
  
</c:if>
<c:if test="${empty list}">
 <tr>
    <td class="nohover" colspan="10" align="center">
    <b>没有可统计的数据！</b>
    </td>
 </tr>
</c:if>
</table>
</body>
</html>
